package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.MemberElder;
import com.zzyl.vo.MemberElderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerMemberElderMapper {
    MemberElder selectByElderId(Long id);

    MemberElder selectByMemberAndElder(Long memberId, Long elderId);

    int insert(MemberElder memberElder);

    List<MemberElder> selectByMemberId(Long memberId);

    Page<MemberElderVo> selectVoByMemberId(@Param("memberId") Long memberId);

}
